import request from '@/utils/request'

// 查询数据权限列表
export function dataauthoritylist(data) {
  return request({
    url: '/systemdataauthority/list',
    method: 'post',
    data: data
  })
}


// 删除
export function remove(query) {
  return request({
    url: '/systemdataauthority/remove',
    method: 'post',
    params: query
  })
}

//获取所有部门
export function getAllDeptTree () {
  return request({
      url: '/department/getDeptTree',
      method: 'GET',
  })
}

//提交
export function submit(data) {
  return request({
      url: '/systemdataauthority/submit',
      method: 'POST',
      data: data
  })
}
